package com.snpic.appaw.module.member.controller.app.login.vo;


import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

/**
 * 密码修改请求参数
 */
@Schema(description = "用户登录 - 密码修改 Request VO")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UpdatePwdReqVO {
    @NotBlank(message = "临时令牌不能为空")
    private String tempToken;

    @NotBlank(message = "手机号不能为空")
    private String phone;

    private String oldPassword;

    @NotBlank(message = "新密码不能为空")
    private String newPassword;

    @Schema(description = "修改用户密码类型,1-验证码修改,")
    @Range(min = 1, max = 5, message = "修改用户密码类型不符合规则")
    private Short updatePwdType;
}
